const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  //关闭语法检查
  lintOnSave: false,
  //设置代理服务器解决 WebSocket connection to ‘ws://x.x.x.60:8081/ws‘ failed
  devServer: {
    host: "0.0.0.0",
    port: 8081,
    client: {
      webSocketURL: "ws://0.0.0.0:8081/ws",
    },
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
    // proxy: {
    //   "/api": {
    //     target: "http://kumanxuan1.f3322.net:8881/cms",
    //     pathRewrite: {
    //       "^/api": "",
    //     },
    //   },
    // },
  },
});
